{% extends 'base.html' %}
{% from 'macros.html' import user_card with context %}
{% block title %} Group: {{ group.name }} {% endblock %}
{% block page_content %}
    <div id="info">
        <h1>{{ group.name }}</h1>
        <h2>{{ _("Members") }} ({{ group.members | length }}): </h2>
        <ul class="list-group">
            {% for member in group.members %}
                {{ user_card(member, group=group) }}
            {% endfor %}
        </ul>
        {% if current_user in group.members %}
            <a href="{{ url_for('group.discussion', id=group.id) }}" class="btn btn-block btn-outline-primary">
                Go to discussion
            </a>
        {% endif %}
    </div>
{% endblock page_content %}
